package cn.summit.web.controller;

import cn.summit.SayService;
import com.alibaba.dubbo.config.annotation.Reference;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author summit
 * @since 2021/10/23 19:31
 */
@RestController
@RequestMapping("/consumer")
public class WebConsumerController {

	@Reference
	private SayService sayService;


	@GetMapping("/say")
	public String say(@RequestParam String userName) {
		return sayService.say(userName);
	}

}
